<? $page_title = '采购订单明细' ?>
<? include "FASHION/page_header.phtml" ?>

<div id="printArea">
    <table class="ptop" border="0" cellpadding="4" cellspacing="0" width="100%">
         <thead>
            <tr class="nobg">
                <th colspan="4"><h2><?$print_com_name?></h2></th>
            </tr>
            <tr class="nobg">
                <th colspan="4"><h1><?$page_title?></h1></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td rowspan="2" width="80" valign="top">供应商：</td>
                <td rowspan="2" valign="top"><? $indent.supplier ?></td>
                <td width="15%" class="right">PO NO.：</td>
                <td width="35%"><? $indent.sno ?></td>
            </tr>
            <tr>
                <td width="15%" class="right">日 期：</td>
                <td><?=date('Y-m-d H:i', $indent.addtime) ?></td>
            </tr>
        </tbody>
    </table>

    <table border="0" class="list pcontent">
        <thead>
            <tr class="nobg">
                <th>编号</th>
                <th>材料名称</th>
                <th>品牌</th>
                <th>规格</th>
                <th>单位</th>
                <th>数量</th>
                <th>单价</th>
                <th>金额</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
            <? $amount = 0; ?>
            <{foreach item=ware from=$indent.items}>
            <tr>
                <td><{$ware.sno}></td>
                <td><{$ware.name}></td>
                <td><{$ware.brand}></td>
                <td><{$ware.specific}></td>
                <td><{$ware.unit}></td>
                <td><div class="decimal"><{$ware.amount}></div></td>
                <td><div class="decimal fnum"><{$ware.price}></div></td>
                <td><div class="decimal fnum"><{= $ware.price * $ware.amount}></div></td>
                <td><div class="text"><{= $ware.remark}></div></td>
            </tr>
            <? $amount += $ware.amount ?>
            <{/foreach}>
            
            <tr class="hl">
                <td>小计</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><div class="decimal"><? $amount ?></div></td>
                <td>&nbsp;</td>
                <td><div class="decimal fnum"><? $indent.total ?></div></td>
                <td>&nbsp;</td>
            </tr>
        </tbody>       
    </table>

    <table border="0" cellpadding="4" cellspacing="0" width="100%" class="pbot">
        <tbody>
            <tr>
                <td width="80">采购经办人：</td>
                <td width="100"><? $indent.user_name ?></td>
                <td><? include 'rever/frame_reviewers.phtml' ?></td>
            </tr>
            <tr>
                <td>PR NO.： </td>
                <td colspan="2"><? $indent.pr_no ?></td>
            </tr>
            <tr>
                <td>备注： </td>
                <td class="text" colspan="2"><? $indent.remark ?></td>
            </tr>
            <tr><td colspan="3"><? include "rever/frame_reviewer_back.phtml" ?></td></tr>
        </tbody>
    </table>
</div>
<? include "FASHION/page_footer.phtml" ?>